package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Member;
import org.springframework.stereotype.Service;

import java.util.List;

public interface MemberService {
    public Member findByTelephone(String telephone);
    public void add(Member member);
    public List<Integer> findMemberCountByMonths(List<String> months);

    // 分页查询
    public PageResult findPage(QueryPageBean queryPageBean);

    //更新会员信息
    public void edit(Member member);

    //根据id删除会员信息
    public void deleteById(Integer id);

    //根据id查询会员信息
    public Member findById(Integer id);
}
